package com.xinqi.xinqidev.publisher.consumer.listeners;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author xin麒
 * @date 2023/11/16 12:02
 */
@Slf4j
@Component
public class MqListener {
    @RabbitListener(queues = "xinqiObject.queue")
    public void listenObjectQueue(Map<String,Object> msg){
        System.out.println("消费者收到了【xinqiObject.queue】队列的消息：【" + msg +"】");
    }

}
